package sctu.edu.java.year2016.team04.baiyunfei.Exercise;

import java.util.Scanner;

/**
 * Created by DE on 2016/5/29.
 */
public class CelsiusConverter {
    public double getFahrenheit(double celsius){
        double fahrenheit = 1.8*celsius+32;
        return fahrenheit;
    }

    public static void main(String[] args) {
        System.out.println("请输入要转换的温度（摄氏度）：");
        Scanner in=new Scanner(System.in);
        double celsius= in.nextDouble();
        CelsiusConverter converter=new CelsiusConverter();
        double fahrenheit=converter.getFahrenheit(celsius);
        System.out.println("华氏度:"+fahrenheit);
    }

    public void start() {

    }
}
